package me.tuyou.cloud.common; /**
 * Meituan.com Inc.
 * Copyright (c) 2010-2019 All Rights Reserved.
 */

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * <p></p>
 *
 * @author tuyou@meituan.com
 * @version v0.1 2019-01-08 9:11 PM tuyou Exp $$
 */
public class User {

    private String name;
    private int age;

//    public me.tuyou.cloud.common.User() {
//    }

    @JsonCreator
    public User(@JsonProperty("name") String name, @JsonProperty("age") int age) {
        this.name = name;
        this.age = age;
    }

    //    public String getName() {
//        return name;
//    }
//
//    public void setName(String name) {
//        this.name = name;
//    }
//
//    public int getAge() {
//        return age;
//    }
//
//    public void setAge(int age) {
//        this.age = age;
//    }

    @Override
    public String toString() {
        return "me.tuyou.cloud.common.User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}